/**
 * Created by 春旺 on 2017/3/27.
 */
import java.util.Scanner;

public class Average75
{
    public static void main(String[] args)
    {
     int num, size, total = 0;
     double mean, sd, a , b ;


        Scanner scan = new Scanner(System.in);
     System.out.println("how many numbers do you want to enter: ");
     size = scan.nextInt();
        System.out.println("you want to enter:" + size);
        String another = "y";
     while (another.equalsIgnoreCase("y"))
     {
         System.out.println("Enter the number: ");
         Scanner scan1 = new Scanner(System.in);
         num = scan1.nextInt();
         int[] number = new int[51];
         int number1 = 0;
         number[number1] = num;
         number1++;
         Scanner scan2 = new Scanner(System.in);



         for (int i = 0; i <= size; i++)
         {
             total = total + number[i];


             mean = total / i ;
             a = number[i] - mean;
             b = Math.pow(a,2) / i;
             sd = Math.pow(b,1/2);
             System.out.println("Do you wan to another number(y/n): ");
             another = scan2.nextLine();
         }


     }
    }
}
